package com.ftg.learn.chapter12.manytomany;

import lombok.Data;

/**
 * @author kangjx
 * @createTime 2022/8/2
 */
@Data
public class PersonTable {

    private int index = 0;

    public PersonTable(int bikeCapacity){
        //容错
        person = new Person[bikeCapacity];
    }

    private Person[] person;

    public void add(Person p){
        //扩容

        this.person[index++] =p;
    }

}
